package com.promis.party.ui.userinfo;

import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.KeyEvent;
import android.view.View;
import android.widget.EditText;
import android.widget.TextView;
import android.widget.Toast;

import com.promis.compat.StatusBarCompat;
import com.promis.party.R;
import com.promis.party.helper.ContextHelper;
import com.promis.party.helper.UIHepler;
import com.promis.widget.listener.OnAvoidMultiClickListener;

public class UserInfoActivity extends AppCompatActivity {

    private ContextHelper contextHelper;

    private TextView txtvUpdatePasswd;
    private TextView txtvSubmit;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        StatusBarCompat.translucentStatusBar(this);
        StatusBarCompat.blackTextStatusBar(this);
        setContentView(R.layout.activity_user_info);
        UIHepler.goBack(UserInfoActivity.this, R.id.activity_user_info_imgv_back);

        txtvUpdatePasswd = findViewById(R.id.activity_user_info_txtv_updatepassword);

        initData();
        initListener();
    }

    private void initData() {
        contextHelper = new ContextHelper(getBaseContext());
    }

    private void initListener() {

        txtvUpdatePasswd.setOnClickListener(new OnAvoidMultiClickListener() {
            @Override
            public void onAvoidMultiClick(View v) {
                Intent intent = new Intent(getBaseContext(), UpdatePasswordActivity.class);
                startActivity(intent);
            }
        });

//        txtvSubmit.setOnClickListener(new View.OnClickListener() {
//            @Override
//            public void onClick(View v) {
//            }
//        });
    }
}
